<!--
 * @Author: SilentVver 928872571@qq.com
 * @Date: 2023-09-03 18:10:00
 * @LastEditors: SilentWaver silentwaver.code@gmail.com
 * @LastEditTime: 2024-05-03 22:18:35
 * @Description: 
 * 
-->
<template>
  <router-view />
</template>
<script>
import axios from 'axios'
import globalCfg from '../public/static/config.js'
export default {
  data() {
    return {
      publicUrl: process.env.BASE_URL
    }
    
  },
  created() {
    // console.log(this.publicUrl,'pl')
    // axios.get(this.publicUrl+"static/data.json").then(res => {
    //   console.log(res,'config')
    //   console.log(this.$store)
    //   this.$store.commit('config/setCfg',res.data)
    // })
    console.log(globalCfg,'xsxs')
    this.$store.commit('config/setCfg',{appList:globalCfg})
  }
}
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
